package com.day2.t4;

public class Main {
    public int uniquePathsWithObstacles(int[][] obstacleGrid) {
        for(int i = 0; i < obstacleGrid.length && obstacleGrid[i][0] != 1; i++){
            obstacleGrid[i][0]=-1;
        }
        for(int i = 0; i < obstacleGrid[0].length && obstacleGrid[0][i] != 1; i++){
            obstacleGrid[0][i]=-1;
        }
        return 0;
    }
}
